package prototype.demo2;

import java.io.Serializable;

public class Realizetype2 implements Cloneable, Serializable {

    private Integer num;
    private People people;

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public People getPeople() {
        return people;
    }

    public void setPeople(People people) {
        this.people = people;
    }

    public Realizetype2(Integer num, People people) {
        System.out.println("有参构造");
        this.num = num;
        this.people = people;
    }

    public Realizetype2() {
        System.out.println("无参构造");
    }

    @Override
    public Realizetype2 clone() throws CloneNotSupportedException {
        System.out.println("clone() 调用");
        return (Realizetype2) super.clone();
    }
}
